namespace ShareMarking.Entity {
    	using System;


    /// <summary>
    /// 表名：qr_Activity 主键列：ActivityID
    /// </summary>
    [SerializableAttribute()]
    public partial class qr_Activity : MySoft.Data.Entity
    {

        protected Int32 _ActivityID;

        protected String _A_Name;

        protected String _A_Content;

        protected String _A_RuleText;

        protected String _A_Desc;

        protected DateTime? _A_StartTime;

        protected DateTime? _A_EndTime;

        protected String _A_Address;

        protected String _A_Manager;

        protected String _A_wxQrCodeID;

        protected String _A_wxSceneID;

        protected String _A_wxTitle;

        protected String _A_wxImgUrl;

        protected String _A_wxDesc;

        protected String _A_SaCode;

        protected String _A_wxUrl;

        protected String _A_wxbeforeUrl;

        protected String _A_wxafterUrl;

        protected String _A_currentUrl;

        protected DateTime? _CreateOn;

        protected DateTime? _DateModified;

        protected Boolean? _isneedupdate;

        protected Int32 _isSenate;

        public Int32 ActivityID
        {
            get
            {
                return this._ActivityID;
            }
            set
            {
                this.OnPropertyValueChange(_.ActivityID, _ActivityID, value);
                this._ActivityID = value;
            }
        }  
        public String A_Name
        {
            get
            {
                return this._A_Name;
            }
            set
            {
                this.OnPropertyValueChange(_.A_Name, _A_Name, value);
                this._A_Name = value;
            }
        }

        public String A_Content
        {
            get
            {
                return this._A_Content;
            }
            set
            {
                this.OnPropertyValueChange(_.A_Content, _A_Content, value);
                this._A_Content = value;
            }
        }

        public String A_RuleText
        {
            get
            {
                return this._A_RuleText;
            }
            set
            {
                this.OnPropertyValueChange(_.A_RuleText, _A_RuleText, value);
                this._A_RuleText = value;
            }
        }

        public String A_Desc
        {
            get
            {
                return this._A_Desc;
            }
            set
            {
                this.OnPropertyValueChange(_.A_Desc, _A_Desc, value);
                this._A_Desc = value;
            }
        }

        public DateTime? A_StartTime
        {
            get
            {
                return this._A_StartTime;
            }
            set
            {
                this.OnPropertyValueChange(_.A_StartTime, _A_StartTime, value);
                this._A_StartTime = value;
            }
        }

        public DateTime? A_EndTime
        {
            get
            {
                return this._A_EndTime;
            }
            set
            {
                this.OnPropertyValueChange(_.A_EndTime, _A_EndTime, value);
                this._A_EndTime = value;
            }
        }

        public String A_Address
        {
            get
            {
                return this._A_Address;
            }
            set
            {
                this.OnPropertyValueChange(_.A_Address, _A_Address, value);
                this._A_Address = value;
            }
        }

        public String A_Manager
        {
            get
            {
                return this._A_Manager;
            }
            set
            {
                this.OnPropertyValueChange(_.A_Manager, _A_Manager, value);
                this._A_Manager = value;
            }
        }

        public String A_wxQrCodeID
        {
            get
            {
                return this._A_wxQrCodeID;
            }
            set
            {
                this.OnPropertyValueChange(_.A_wxQrCodeID, _A_wxQrCodeID, value);
                this._A_wxQrCodeID = value;
            }
        }

        public String A_wxSceneID
        {
            get
            {
                return this._A_wxSceneID;
            }
            set
            {
                this.OnPropertyValueChange(_.A_wxSceneID, _A_wxSceneID, value);
                this._A_wxSceneID = value;
            }
        }

        public String A_wxTitle
        {
            get
            {
                return this._A_wxTitle;
            }
            set
            {
                this.OnPropertyValueChange(_.A_wxTitle, _A_wxTitle, value);
                this._A_wxTitle = value;
            }
        }

        public String A_wxImgUrl
        {
            get
            {
                return this._A_wxImgUrl;
            }
            set
            {
                this.OnPropertyValueChange(_.A_wxImgUrl, _A_wxImgUrl, value);
                this._A_wxImgUrl = value;
            }
        }

        public String A_wxDesc
        {
            get
            {
                return this._A_wxDesc;
            }
            set
            {
                this.OnPropertyValueChange(_.A_wxDesc, _A_wxDesc, value);
                this._A_wxDesc = value;
            }
        }

        public String A_SaCode
        {
            get
            {
                return this._A_SaCode;
            }
            set
            {
                this.OnPropertyValueChange(_.A_SaCode, _A_SaCode, value);
                this._A_SaCode = value;
            }
        }

        public String A_wxUrl
        {
            get
            {
                return this._A_wxUrl;
            }
            set
            {
                this.OnPropertyValueChange(_.A_wxUrl, _A_wxUrl, value);
                this._A_wxUrl = value;
            }
        }

        public String A_wxbeforeUrl
        {
            get
            {
                return this._A_wxbeforeUrl;
            }
            set
            {
                this.OnPropertyValueChange(_.A_wxbeforeUrl, _A_wxbeforeUrl, value);
                this._A_wxbeforeUrl = value;
            }
        }

        public String A_wxafterUrl
        {
            get
            {
                return this._A_wxafterUrl;
            }
            set
            {
                this.OnPropertyValueChange(_.A_wxafterUrl, _A_wxafterUrl, value);
                this._A_wxafterUrl = value;
            }
        }

        public String A_currentUrl
        {
            get
            {
                return this._A_currentUrl;
            }
            set
            {
                this.OnPropertyValueChange(_.A_currentUrl, _A_currentUrl, value);
                this._A_currentUrl = value;
            }
        }

        public DateTime? CreateOn
        {
            get
            {
                return this._CreateOn;
            }
            set
            {
                this.OnPropertyValueChange(_.CreateOn, _CreateOn, value);
                this._CreateOn = value;
            }
        }

        public DateTime? DateModified
        {
            get
            {
                return this._DateModified;
            }
            set
            {
                this.OnPropertyValueChange(_.DateModified, _DateModified, value);
                this._DateModified = value;
            }
        }

        public Boolean? isneedupdate
        {
            get
            {
                return this._isneedupdate;
            }
            set
            {
                this.OnPropertyValueChange(_.isneedupdate, _isneedupdate, value);
                this._isneedupdate = value;
            }
        }

        public Int32 isSenate
        {
            get
            {
                return this._isSenate;
            }
            set
            {
                this.OnPropertyValueChange(_.isSenate, _isSenate, value);
                this._isSenate = value;
            }
        }

        /// <summary>
        /// 获取实体对应的表名
        /// </summary>
        protected override MySoft.Data.Table GetTable()
        {
            return new MySoft.Data.Table<qr_Activity>("qr_Activity");
        }

        /// <summary>
        /// 获取实体中的标识列
        /// </summary>
        protected override MySoft.Data.Field GetIdentityField()
        {
            return _.ActivityID;
        }

        /// <summary>
        /// 获取实体中的主键列
        /// </summary>
        protected override MySoft.Data.Field[] GetPrimaryKeyFields()
        {
            return new MySoft.Data.Field[] {
    					_.ActivityID};
        }

        /// <summary>
        /// 获取列信息
        /// </summary>
        protected override MySoft.Data.Field[] GetFields()
        {
            return new MySoft.Data.Field[] {
    					_.ActivityID,
    					_.A_Name,
    					_.A_Content,
    					_.A_RuleText,
    					_.A_Desc,
    					_.A_StartTime,
    					_.A_EndTime,
    					_.A_Address,
    					_.A_Manager,
    					_.A_wxQrCodeID,
    					_.A_wxSceneID,
    					_.A_wxTitle,
    					_.A_wxImgUrl,
    					_.A_wxDesc,
    					_.A_SaCode,
    					_.A_wxUrl,
    					_.A_wxbeforeUrl,
    					_.A_wxafterUrl,
    					_.A_currentUrl,
    					_.CreateOn,
    					_.DateModified,
    					_.isneedupdate,
                        _.isSenate
            };
        }

        /// <summary>
        /// 获取列数据
        /// </summary>
        protected override object[] GetValues()
        {
            return new object[] {
    					this._ActivityID,
    					this._A_Name,
    					this._A_Content,
    					this._A_RuleText,
    					this._A_Desc,
    					this._A_StartTime,
    					this._A_EndTime,
    					this._A_Address,
    					this._A_Manager,
    					this._A_wxQrCodeID,
    					this._A_wxSceneID,
    					this._A_wxTitle,
    					this._A_wxImgUrl,
    					this._A_wxDesc,
    					this._A_SaCode,
    					this._A_wxUrl,
    					this._A_wxbeforeUrl,
    					this._A_wxafterUrl,
    					this._A_currentUrl,
    					this._CreateOn,
    					this._DateModified,
    					this._isneedupdate,
                        this._isSenate};
        }

        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        protected override void SetValues(MySoft.Data.IRowReader reader)
        {
            if ((false == reader.IsDBNull(_.ActivityID)))
            {
                this._ActivityID = reader.GetInt32(_.ActivityID);
            }
            if ((false == reader.IsDBNull(_.A_Name)))
            {
                this._A_Name = reader.GetString(_.A_Name);
            }
            if ((false == reader.IsDBNull(_.A_Content)))
            {
                this._A_Content = reader.GetString(_.A_Content);
            }
            if ((false == reader.IsDBNull(_.A_RuleText)))
            {
                this._A_RuleText = reader.GetString(_.A_RuleText);
            }
            if ((false == reader.IsDBNull(_.A_Desc)))
            {
                this._A_Desc = reader.GetString(_.A_Desc);
            }
            if ((false == reader.IsDBNull(_.A_StartTime)))
            {
                this._A_StartTime = reader.GetDateTime(_.A_StartTime);
            }
            if ((false == reader.IsDBNull(_.A_EndTime)))
            {
                this._A_EndTime = reader.GetDateTime(_.A_EndTime);
            }
            if ((false == reader.IsDBNull(_.A_Address)))
            {
                this._A_Address = reader.GetString(_.A_Address);
            }
            if ((false == reader.IsDBNull(_.A_Manager)))
            {
                this._A_Manager = reader.GetString(_.A_Manager);
            }
            if ((false == reader.IsDBNull(_.A_wxQrCodeID)))
            {
                this._A_wxQrCodeID = reader.GetString(_.A_wxQrCodeID);
            }
            if ((false == reader.IsDBNull(_.A_wxSceneID)))
            {
                this._A_wxSceneID = reader.GetString(_.A_wxSceneID);
            }
            if ((false == reader.IsDBNull(_.A_wxTitle)))
            {
                this._A_wxTitle = reader.GetString(_.A_wxTitle);
            }
            if ((false == reader.IsDBNull(_.A_wxImgUrl)))
            {
                this._A_wxImgUrl = reader.GetString(_.A_wxImgUrl);
            }
            if ((false == reader.IsDBNull(_.A_wxDesc)))
            {
                this._A_wxDesc = reader.GetString(_.A_wxDesc);
            }
            if ((false == reader.IsDBNull(_.A_SaCode)))
            {
                this._A_SaCode = reader.GetString(_.A_SaCode);
            }
            if ((false == reader.IsDBNull(_.A_wxUrl)))
            {
                this._A_wxUrl = reader.GetString(_.A_wxUrl);
            }
            if ((false == reader.IsDBNull(_.A_wxbeforeUrl)))
            {
                this._A_wxbeforeUrl = reader.GetString(_.A_wxbeforeUrl);
            }
            if ((false == reader.IsDBNull(_.A_wxafterUrl)))
            {
                this._A_wxafterUrl = reader.GetString(_.A_wxafterUrl);
            }
            if ((false == reader.IsDBNull(_.A_currentUrl)))
            {
                this._A_currentUrl = reader.GetString(_.A_currentUrl);
            }
            if ((false == reader.IsDBNull(_.CreateOn)))
            {
                this._CreateOn = reader.GetDateTime(_.CreateOn);
            }
            if ((false == reader.IsDBNull(_.DateModified)))
            {
                this._DateModified = reader.GetDateTime(_.DateModified);
            }
            if ((false == reader.IsDBNull(_.isneedupdate)))
            {
                this._isneedupdate = reader.GetBoolean(_.isneedupdate);
            }
            if ((false == reader.IsDBNull(_.isSenate)))
            {
                this._isSenate = reader.GetInt32(_.isSenate);
            }
        }

        public override int GetHashCode()
        {
            return base.GetHashCode();
        }

        public override bool Equals(object obj)
        {
            if ((obj == null))
            {
                return false;
            }
            if ((false == typeof(qr_Activity).IsAssignableFrom(obj.GetType())))
            {
                return false;
            }
            if ((((object)(this)) == ((object)(obj))))
            {
                return true;
            }
            return false;
        }

        public class _
        {

            /// <summary>
            /// 表示选择所有列，与*等同
            /// </summary>
            public static MySoft.Data.AllField All = new MySoft.Data.AllField<qr_Activity>();

            /// <summary>
            /// 字段名：ActivityID - 数据类型：Int32
            /// </summary>
            public static MySoft.Data.Field ActivityID = new MySoft.Data.Field<qr_Activity>("ActivityID");

            /// <summary>
            /// 字段名：A_Name - 数据类型：String
            /// </summary>
            public static MySoft.Data.Field A_Name = new MySoft.Data.Field<qr_Activity>("A_Name");

            /// <summary>
            /// 字段名：A_Content - 数据类型：String
            /// </summary>
            public static MySoft.Data.Field A_Content = new MySoft.Data.Field<qr_Activity>("A_Content");

            /// <summary>
            /// 字段名：A_RuleText - 数据类型：String
            /// </summary>
            public static MySoft.Data.Field A_RuleText = new MySoft.Data.Field<qr_Activity>("A_RuleText");

            /// <summary>
            /// 字段名：A_Desc - 数据类型：String
            /// </summary>
            public static MySoft.Data.Field A_Desc = new MySoft.Data.Field<qr_Activity>("A_Desc");

            /// <summary>
            /// 字段名：A_StartTime - 数据类型：DateTime(可空)
            /// </summary>
            public static MySoft.Data.Field A_StartTime = new MySoft.Data.Field<qr_Activity>("A_StartTime");

            /// <summary>
            /// 字段名：A_EndTime - 数据类型：DateTime(可空)
            /// </summary>
            public static MySoft.Data.Field A_EndTime = new MySoft.Data.Field<qr_Activity>("A_EndTime");

            /// <summary>
            /// 字段名：A_Address - 数据类型：String
            /// </summary>
            public static MySoft.Data.Field A_Address = new MySoft.Data.Field<qr_Activity>("A_Address");

            /// <summary>
            /// 字段名：A_Manager - 数据类型：String
            /// </summary>
            public static MySoft.Data.Field A_Manager = new MySoft.Data.Field<qr_Activity>("A_Manager");

            /// <summary>
            /// 字段名：A_wxQrCodeID - 数据类型：String
            /// </summary>
            public static MySoft.Data.Field A_wxQrCodeID = new MySoft.Data.Field<qr_Activity>("A_wxQrCodeID");

            /// <summary>
            /// 字段名：A_wxSceneID - 数据类型：String
            /// </summary>
            public static MySoft.Data.Field A_wxSceneID = new MySoft.Data.Field<qr_Activity>("A_wxSceneID");

            /// <summary>
            /// 字段名：A_wxTitle - 数据类型：String
            /// </summary>
            public static MySoft.Data.Field A_wxTitle = new MySoft.Data.Field<qr_Activity>("A_wxTitle");

            /// <summary>
            /// 字段名：A_wxImgUrl - 数据类型：String
            /// </summary>
            public static MySoft.Data.Field A_wxImgUrl = new MySoft.Data.Field<qr_Activity>("A_wxImgUrl");

            /// <summary>
            /// 字段名：A_wxDesc - 数据类型：String
            /// </summary>
            public static MySoft.Data.Field A_wxDesc = new MySoft.Data.Field<qr_Activity>("A_wxDesc");

            /// <summary>
            /// 字段名：A_SaCode - 数据类型：String
            /// </summary>
            public static MySoft.Data.Field A_SaCode = new MySoft.Data.Field<qr_Activity>("A_SaCode");

            /// <summary>
            /// 字段名：A_wxUrl - 数据类型：String
            /// </summary>
            public static MySoft.Data.Field A_wxUrl = new MySoft.Data.Field<qr_Activity>("A_wxUrl");

            /// <summary>
            /// 字段名：A_wxbeforeUrl - 数据类型：String
            /// </summary>
            public static MySoft.Data.Field A_wxbeforeUrl = new MySoft.Data.Field<qr_Activity>("A_wxbeforeUrl");

            /// <summary>
            /// 字段名：A_wxafterUrl - 数据类型：String
            /// </summary>
            public static MySoft.Data.Field A_wxafterUrl = new MySoft.Data.Field<qr_Activity>("A_wxafterUrl");

            /// <summary>
            /// 字段名：A_currentUrl - 数据类型：String
            /// </summary>
            public static MySoft.Data.Field A_currentUrl = new MySoft.Data.Field<qr_Activity>("A_currentUrl");

            /// <summary>
            /// 字段名：CreateOn - 数据类型：DateTime(可空)
            /// </summary>
            public static MySoft.Data.Field CreateOn = new MySoft.Data.Field<qr_Activity>("CreateOn");

            /// <summary>
            /// 字段名：DateModified - 数据类型：DateTime(可空)
            /// </summary>
            public static MySoft.Data.Field DateModified = new MySoft.Data.Field<qr_Activity>("DateModified");

            /// <summary>
            /// 字段名：isneedupdate - 数据类型：Boolean(可空)
            /// </summary>
            public static MySoft.Data.Field isneedupdate = new MySoft.Data.Field<qr_Activity>("isneedupdate");

            /// <summary>
            /// 字段名：是否带参 - 数据类型：Int32
            /// </summary>
            public static MySoft.Data.Field isSenate = new MySoft.Data.Field<qr_Activity>("isSenate");
        }
    }
}
